package com.deprice4u_client;


public class GroupPurchase {
	public GroupPurchase() {
	}

	public GroupPurchase(String gpInfoStr) {

		/*
		 * //Ex: gpInfoStr = key=sds%%title2=ffff%% .... String[] datas =
		 * gpInfoStr.split("%%"); for (int j = 0; j < datas.length; j++) {
		 * String[] subDatas = datas[j].split("="); map.put(subDatas[0],
		 * subDatas[1]); }
		 */

		// Ex: gpInfoStr = key%%title%% ....
		String[] datas = gpInfoStr.split("%%");

		int i = 0;
		this.key = datas[i++];
		this.title = datas[i++];
		this.imgUrl = datas[i++];
		this.startUserId = datas[i++];
		this.lowestPrice = datas[i++];
		this.description = datas[i++];
		this.timeStart = datas[i++];
		this.timeEnd = datas[i++];
		this.numberOfUsersWithDeposit = datas[i++];
		this.numberOfUsersWithoutDeposit = datas[i++];

	}

	String key;
	String title;
	String imgUrl;
	String startUserId;
	String lowestPrice;
	String description;
	String timeStart;
	String timeEnd;
	String numberOfUsersWithDeposit;
	String numberOfUsersWithoutDeposit;

}
